package com.demo.enums;

public enum GlobalMessageRemindTypeEnum {
    NO(0, "否"),
    YES(1, "是");

    private int value;
    private String desc;

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    GlobalMessageRemindTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static GlobalMessageRemindTypeEnum getByValue(Integer value) {
        for (GlobalMessageRemindTypeEnum item : values()) {
            if (item.getValue() == value) {
                return item;
            }
        }
        return null;
    }
}
